package com.meilai.project.service.personnel.onTurn;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meilai.project.dto.personnel.onTurn.LeaveOfficeApplyCheckDTO;
import com.meilai.project.dto.personnel.onTurn.LeaveOfficeApplyDTO;
import com.meilai.project.vo.personnel.onTurn.LeaveOfficeApplyVO;

import java.util.List;


public interface LeaveOfficeApplyService {

    // 获取列表
    Page<LeaveOfficeApplyVO> selectPageList(Integer current_page,
                                      Integer page_size,
                                      LeaveOfficeApplyDTO searchDTO);

    // 获取详情
    LeaveOfficeApplyVO getOneById(Long id);

    // 保存
    boolean save(LeaveOfficeApplyDTO dto);

    // 提交
    boolean begin(LeaveOfficeApplyDTO dto);

    // 通过
    boolean pass(LeaveOfficeApplyCheckDTO dto);

    // 驳回
    boolean returnBack(LeaveOfficeApplyCheckDTO dto);

    // 删除
    boolean delete(Long id);

    // 彻底删除
    boolean actualDelete(Long id);

    //上传离职交接单
    boolean uploadHandoverSheet(String handover_sheet_url, Long leave_office_apply_id);

    //本人列表查询
    List<LeaveOfficeApplyVO> selectOwnList();

    //新离职申请回填内容
    LeaveOfficeApplyVO getNewAppleyDetail();
}
